#include"proc.h"
#define N 102
#define SE '='
#define X '>'
void process(){
  int i=0;
  char bar[N];
  const char* laber = "/-\\|";
  memset(bar,'\0',sizeof(bar));
  while(i<=100){
    printf("[%-100s][%d%%][%c]\r",bar,i,laber[i%4]);
    bar[i++]=SE;
    fflush(stdout);
    if(i!=100) bar[i]=X;
    usleep(100000);
  }
  printf("\n");

}
